// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'InOutTypeId',
        footer: "Foots",
        cnName: '出入库类型',
        name: 'inouttypemodel',
        url: "/inouttypemodel/",
        sortName: "InOutTypeId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"InOutTypeCode":"","InOutTypeName":"","InOrOut":"","InOutTypeSort":"","InOutTypeStatus":"","InOutTypeDesc":""};
    const editFormOptions = [[{"title":"出入库类型编号","required":true,"field":"InOutTypeCode"},
                               {"title":"出入库类型名称","required":true,"field":"InOutTypeName"}],
                              [{"dataKey":"出库/入库","data":[],"title":"出库或入库","required":true,"field":"InOrOut","type":"select"},
                               {"title":"行排序","required":true,"field":"InOutTypeSort","type":"number"}],
                              [{"dataKey":"出入库状态","data":[],"title":"状态","required":true,"field":"InOutTypeStatus","type":"radio"},
                               {"title":"出入库类型描述","field":"InOutTypeDesc"}]];
    const searchFormFields = {"InOutTypeCode":"","InOutTypeName":"","InOrOut":"","InOutTypeStatus":"","Creator":""};
    const searchFormOptions = [[{"title":"出入库类型编号","field":"InOutTypeCode","type":"like"},{"title":"出入库类型名称","field":"InOutTypeName","type":"like"},{"dataKey":"出库/入库","data":[],"title":"出库或入库","field":"InOrOut","type":"select"}],[{"dataKey":"出入库状态","data":[],"title":"状态","field":"InOutTypeStatus","type":"select"},{"title":"创建人","field":"Creator","type":"="}]];
    const columns = [{field:'InOutTypeId',title:'出入库类型id',type:'bigint',link:true,width:130,require:true,align:'left',sort:true},
                       {field:'InOutTypeCode',title:'出入库类型编号',type:'string',width:130,require:true,align:'left'},
                       {field:'InOutTypeName',title:'出入库类型名称',type:'string',width:130,require:true,align:'left'},
                       {field:'InOrOut',title:'出库或入库',type:'sbyte',bind:{ key:'出库/入库',data:[]},width:110,require:true,align:'left'},
                       {field:'InOutTypeSort',title:'行排序',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'InOutTypeStatus',title:'状态',type:'sbyte',bind:{ key:'出入库状态',data:[]},width:90,require:true,align:'left'},
                       {field:'InOutTypeDesc',title:'出入库类型描述',type:'string',width:130,align:'left'},
                       {field:'IsDelete',title:'是否删除',type:'sbyte',width:110,hidden:true,require:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:90,require:true,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:120,require:true,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:90,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:120,align:'left',sort:true},
                       {field:'CreateID',title:'创建人ID',type:'int',width:120,hidden:true,require:true,align:'left'},
                       {field:'ModifyID',title:'修改人ID',type:'int',width:120,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}